<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>编辑微博</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/common.css}" rel="stylesheet">
    <link th:href="@{/css/user.css}" rel="stylesheet">


</head>
<body>
<div class="container" style="background:white">
    <div th:replace="~{commons/common::header}"></div>
    <div th:replace="~{commons/common::topbar}"></div>
    <div class="row">
        <div class="col-md-9 col-sm-12">

            <div class="user-info-box">
                <div class="user-info-inner-box" style="height: 639px">
                    <h2>写微博</h2>
                    <!--表单-->
                    <form id="blogAddForm" class="form-horizontal" method="post" th:action="@{/blog/add}"
                          enctype="multipart/form-data">
                        <div class=" col-md-8 col-sm-12">
                            <div class="form-group">
                                <label for="blogTitle" class="col-sm-2 control-label"><font
                                        color="red">* </font>标题</label>
                                <div class="col-sm-10">
                                    <input name="title" id="blogTitle" type="text" class="form-control" rows="3"
                                           placeholder="标题长度必须大于1小于20" autocomplete="off">
                                    <font color="red"> </font>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="blogLabel" class="col-sm-2 control-label">标签</label>
                                <div class="col-sm-10">
                                    <select id="blogLabel" name="label" class="form-control">
                                        <option value="0" selected disabled>请选择标签</option>
                                        <option th:each="label:${labels}" th:value="${label.id}"
                                                th:text="${label.name}"></option>
                                    </select>
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-2 control-label" for="blogContent"><font
                                        color="red">* </font>内容</label>
                                <div class="col-sm-10">
                            <textarea style="resize: none" name="content" id="blogContent" class="form-control"
                                      rows="5"></textarea><font color="red"> </font>
                                </div>
                            </div>

                            <div class="form-group">
                                <label for="postScript" class="col-sm-2 control-label">备注说明</label>
                                <div class="col-sm-10">
                                    <input type="text" id="postScript" name="postScript" class="form-control"
                                           placeholder="备注长度必须小于20" autocomplete="off">
                                    <font color="red"> </font>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-10">
                                    <button type="button" id="blogAdd-btn" class="btn btn-primary" style="width: 75px">
                                        提交
                                    </button>
                                </div>
                            </div>
                        </div>


                        <div class="col-md-4 col-sm-12">
                            <img id="blogImg" th:src="@{/imgs/7.jpg}" class="img-responsive img-thumbnail"
                                 alt="Responsive image"/>
                            <input type="file" name="blogImgSrc" id="blogImgSrc" accept="image/*" th:value="111.jpg">
                        </div>

                    </form>
                    <!--END表单-->
                </div>
            </div>

        </div>
        <div class="col-md-3 col-sm-12">
            <div th:replace="~{commons/common::headerimage}"></div>
            <div th:replace="~{commons/common::hotrange}"></div>
        </div>
    </div>
    <div th:replace="~{commons/common::footer}"></div>


</div>
</body>

<script th:src="@{/js/jquery-1.11.0.min.js}"></script>
<script th:src="@{/js/bootstrap.min.js}"></script>
<script th:src="@{/js/jquery.easyui.min.js}" type="text/javascript"></script>
<script th:src="@{/js/common.js}"></script>
<script th:src="@{/js/button.js}"></script>
<script th:src="@{/js/blog/addBlog.js}"></script>
</html>







